Linux FTP command and linuxftp command
I,FtpOfGetCommandAnd mgetCommandWhat's the difference?
GetOnly one file is downloaded at a time. mget can download multiple files at a time, and supports wildcards. Note that when mget is used, you must select y/n for each file, if you want to download all files without interaction, you can use promptCommandTurn off the interaction mode (close: prompt off; open: prompt on ).
II,FTPWhat to useCommandTo locate the path between the server and the local hard di
() function to enter the administrator password in the file. If an error in the open file will return a value of false, the last function should remember to call Pclose () off.
Here we plan the FTP user group, we first use PW Groupadd ftpuser to create the Ftpuse group, so that the online application users for the group members. For security reasons, we should not give FTP users telnet permission, so we also have to create a shell for them, so that
return a value of false, the last function should remember to call Pclose () off.
Here we plan the FTP user group, we first use PW Groupadd ftpuser to create the Ftpuse group, so that the online application users for the group members. For security reasons, we should not give FTP users telnet permission, so we also have to create a shell for them, so that they can not log through Telnet normal system, the following method: First create a file/bin/ftp
, the corresponding "string mode" is 'r' or 'W', and "string command" is the command string. you can use fgets () and fgetss () in file operations () this example uses the fputs () function to enter the administrator password in the file. If an error occurs when the file is opened, the return value is false. remember to call pclose () to close the function.
Next, let's plan the FTP user group. in advance, we first create the ftpuse group with
FTP is one of the earliest protocols used on the TCP/IP network and the Internet. It belongs to the application layer of the network protocol group.
The FTP client can send commands to the server to download files, upload files, and create or change directories on the server.
FTP is often used at work. In fact, it is mainly used to upload and download files. The following lists Common commands:
01. FTP 192.168.0.1# Enter the user name and password to log on to the FTP server
[[emailprotected]
You are on the nsftools.com site
This page originally appearedHttp://www.dreamhaven.org/ftp-raw.html, but the last time I looked it wasn' t there any more, so I posted a local copy for you here. if you were really looking for a list of commands for the Microsoft Windows command-line FTP client, pleaseLook here instead.
List of raw FTP commands
(Warning: this is a technical document, not necessary for most ftpuse .)
Note that commands marked with a *
] [shelldir] [-h 0]'
After the command is executed, the system requires you to enter the administrator password. Then, you can run the command as the administrator.The main difficulty in implementing this step is how to use PHP to call the above system commands to create a user. In this example, the popen () function in PHP is used, this function executes commands to open the file. The syntax is int popen (string command, string mode). The opened file can only be one-way and can only be read or
future are actually FTP via this system User:Groupadd–g 2003 FtpgroupUseradd–u 2003–g ftpgroup–d/home FtpuserThe above set up a named Ftpgroup FTP group, the group ID is 2003; an FTP user is established, the user ID is 2003, and the Ftpgroup group is added, and the user's home directory is/homeThen modify the/home and access permissions:Chown–r Ftpuser.ftpgroup/homechmod 644/home644 the specific meaning, please check the relevant documents.Then modify the proftpd.conf file, locate user and grou
first use PW Groupadd ftpuser to create the Ftpuse group, so that the online application users for the group members. For security reasons, we should not give FTP users telnet permission, so we also have to create a shell for them, so that they can not log through Telnet normal system, the following method: First create a file/bin/ftponly
Copy Code code as follows:
#!/bin/csh
/bin/cat Can ony use this username to login ftp server!
#touch/etc/vsftpd/chroot_list#cut-D:-F 1/etc/passwd >>/etc/vsftpd/chroot_list add Local users to Chroot_listRestrict critical system users from logging on to ftp:#cat/etc/vsftpd/ftpusers Some of the more important users in the system have been added by default#echo "Viong" >>/etc/vsftpd/ftpusers at this time Viong cannot log on to FTPUse FTP user policy to allow system users to log on to ftp:/etc/vsftpd/user_list only users in this file can log in to
fputs () function to enter the administrator password in the file. If an error occurs when the file is opened, the return value is false. Remember to call pclose () to close the function.
Next, let's plan the FTP user group. In advance, we first create the ftpuse group with pw groupadd ftpuser so that the online user applied for is a member of this group. For the sake of security, we should not grant the FTP user the Telnet permission. Therefore, we
Ftpuse group, so that users of the online application are members of this group. For security reasons, we should not give FTP users telnet permissions, so we also have to create a shell for them, so that they can not telnet to the normal system, the method is as follows: first create a file/bin/ftponly
Copy CodeThe code is as follows:
#!/bin/csh
/bin/cat Can ony use this username to login ftp server!
And you can not use it to telnet to this system!
Simple and practical FTP commands
FTP is one of the earliest protocols used on the TCP/IP network and the INTERNET. It belongs to the application layer of the network protocol group.
The FTP client can send commands to the server to download files, upload files, and create or change directories on the server.
FTP is often used at work. In fact, it is mainly used to upload and download files. The following lists Common commands:
01. ftp 192.168.0.1# Enter the user name and password to log on to
Simple and practical FTP commands
FTP is one of the earliest protocols used on the TCP/IP network and the INTERNET. It belongs to the application layer of the network protocol group.
The FTP client can send commands to the server to download files, upload files, and create or change directories on the server.
FTP is often used at work. In fact, it is mainly used to upload and download files. The following lists Common commands:
01. ftp 192.168.0.1# Enter the user name and password to log on to
shell.
The su command must be used for normal user login.
Su root-c 'echo
After the command is executed, the system requires you to enter the administrator password. Then, you can run the command as the administrator.
The main difficulty in implementing this step is how to use PHP to call the above system commands to create a user. In this example, the popen () function in PHP is used, this function executes commands to open the file. The syntax is int popen (string command, string mode). The
command" is the command string. you can use fgets () and fgetss () in file operations () this example uses the fputs () function to enter the administrator password in the file. If an error occurs when the file is opened, the return value is false. remember to call pclose () to close the function.
Next, let's plan the FTP user group. in advance, we first create the ftpuse group with pw groupadd ftpuser so that the online user applied for is a member
point to the directory, start here "FTP Default We use System user, now we add user Ftptest, point to directory/home/ftptest, permission is Nologin, is not give shell permission, does not affect the FTP# Useradd ftptest-d/home/ftptest-s/sbin/nologinView Users and groups (you need to specify users and groups if the users and groups are not correct)Cd/homeLs-alSet up a group of directories and their files, and you can also use other groupings# Chown-r ftptest. Ftptest/home/ftptestSet the user ftp
"string mode" is 'r' or 'W', and "string command" is the command string. you can apply fgets () and fgetss () to file control () in this example, the fputs () function is used to input the administrator password to the file. If an error occurs when the file is opened, the value of false is returned. remember to call pclose () to close the function.
Next, let's plan the FTP user group. in advance, we first create the ftpuse group with pw groupadd ftpu
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.